<?php

namespace App\Models\Finance;

use Illuminate\Database\Eloquent\Model;

class Check extends Model
{
    //字段白名单
    protected $fillable = [
        'game_id', 'channel_id', 'start_time', 'end_time', 'income', 'real_income',
        'contract_time', 'business_confirm', 'receipt_confirm',
        'arrive_confirm', 'share_ratio_type'
    ];

    //表名
    protected $table = 'mc_finance_check';

    public function ratios()
    {
        return $this->hasMany(CheckRatio::class, 'check_id', 'id');
    }
}
